﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div>
        <form method="post">
            <p>名单1:<input type="text" name="name" /></p>
            <p>名单2:<input type="text" name="name" /></p>
            <p>名单3:<input type="text" name="name" /></p>
            <p>名单4:<input type="text" name="name" /></p>
            <p>名单5:<input type="text" name="name" /></p>
            <button type="submit">提交</button>
        </form>
        @if (ViewBag.Name != null)
        {
            <p>嫖娼名单上面有：</p>
            var name = ViewBag.Name as IList<string>;

            foreach (var item in name)
            {
                <p>@item</p>
            }
        }


    </div>

</body>
</html>
